def format_name(name_list):
    return name_list[0].upper() + name_list[1:].lower()


for item in map(format_name, ['alice', 'BOB', 'CanDY']):
    print(item)
